<template>
  <div>
    <div class="pro-img">
      <img class="auto-img" :src="product.smallImg" alt="">
    </div>
    <div class="pro-name one-text">{{product.name}}</div>
    <div class="pro-enname one-text">{{product.enname}}</div>
    <div class="pro-price">&yen;{{product.price}}</div>
  </div>
</template>

<script>
export default {
  name: "ProItem",

  props: {
    //单个商品数据
    product: {
      type: Object,
      default() {
        return {};
      }
    }
  }
};
</script>

<style lang="less" scoped>
.pro-img {
  background-color: #e8e8e8;
}

.pro-name {
  font-size: 14px;
  color: #444;
  margin-top: 10px;
}

.pro-enname {
  font-size: 12px;
  color: #999;
}

.pro-price {
  color: #0c34ba;
  font-weight: bold;
  font-size: 14px;
  margin-top: 5px;
}
</style>